<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>头部信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" type="text/css" href="./styles/chromestyle.css" />
		<script type="text/javascript" src="./javaScripts/chrome.js"></script>
		
		<script type="text/javascript">
      function logon(){
     
        if(confirm("你确定要注销吗？")){
          window.location="<%=basePath%>"+"logonAction.action";
		}
	}
</script>
	</head>

	<body>
		<div>
			<table width="100%">
				 
				<tr>
					<td width="20%" align="left">
						<span style="color:white;font-size:14px"><s:property value="#session.userDto.userName" />
						<s:property value="#session.userDto.tbSysRole.role" />
						</span>
					</td>
					<td width="80%" align="right">
						<div class="chromestyle " id="chromemenu">
							<ul>
								<li>
									<a href="#">短消息</a>
								</li>
								<li>
									<a href="./bbs/search/baseSearchQuery.jsp">搜索</a>
								</li>
								<li>
									<a href="./bbs/post/myPostQuery.jsp">我的话题</a>
								</li>
								<li>
									<a href="./bbs/control/controlPanel.jsp" rel="dropmenu1">控制面板</a>
								</li>
								<li>
									<a href="#">帮助</a>
								</li>
								<li>
									<a  href="javaScript:logon();">退出</a>
								</li>
							</ul>
						</div>

						<div id="dropmenu1" class="dropmenudiv">
							<a href="./bbs/control/controlPanel.jsp">控制面板首页</a>
							<a href="./bbs/user/userInfoQuery.jsp">编辑个人资料</a>
							<a href="#">积分记录</a>

						</div>

						<script type="text/javascript">
	           cssdropdown.startchrome("chromemenu");
                </script>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>
